<template>
	<view>
		<!-- <web-view src="http://l02I/fK_qmNS*7!=4t1?A'I=&JiuT=" @message="getMessage"></web-view> -->
		<web-view :src="url" @message="getMessage"></web-view>
	</view>
</template>
<script>
	export default {
		data() {
			return {
				url: ''
			}
		},
		onLoad(options) {
			if (options && options.url) {
				this.url = unescape(options.url);
			}
		},
		methods: {
			getMessage(event) {
				if(event.type=='message'){
					var val =event.detail.data[0];
					
					switch (val.optype){
						case 1:
						this.$navTo(val.url);
							break;
					}
					
				}
			}
		}
	}
</script>

<style>

</style>
